<?php

$link = mysqli_connect("localhost","root","root","2113");
$sql = "SELECT * FROM list ";
// echo $sql;die;
$res = mysqli_query($link,$sql);
$one =  mysqli_fetch_assoc($res);
$arr = [];

// if(!empty($one)){
// 	$arr['status'] = 1;
// 	$arr['info'] = $one;
// } else{
// 	$arr['status'] = 0;
// 	$arr['info'] = "查询失败";
// }
while($one=mysqli_fetch_assoc($res)){
    $arr[] = $one;
};

echo json_encode($arr);

?>